source /root/admin-openstack.sh

#Nova服务注册
openstack service create --name nova --description "OpenStack Compute" compute
openstack endpoint create --region RegionOne compute public http://{{ NOVA_IP }}:8774/v2.1
openstack endpoint create --region RegionOne compute internal http://{{ NOVA_IP }}:8774/v2.1
openstack endpoint create --region RegionOne compute admin http://{{ NOVA_IP }}:8774/v2.1

#Placement服务注册
openstack service create --name placement --description "Placement API" placement
openstack endpoint create --region RegionOne placement public http://{{ PLACEMENT_IP }}:8778
openstack endpoint create --region RegionOne placement internal http://{{ PLACEMENT_IP }}:8778
openstack endpoint create --region RegionOne placement admin http://{{ PLACEMENT_IP }}:8778
#测试
openstack host list
